import Axios from 'axios'
const axios = Axios.create({
    baseURL:'/',
});
axios.interceptors.request.use(
    config => {
        return config;
    },
    error => {
        console.log(error);
        Promise.reject(error);
    }
);
axios.interceptors.response.use(
    response =>{
        return response
    },
    error => {
        return Promise.reject(error.response)
    }
);